package com.mars.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.common.request.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 药品请求对象 sys_drug
 *
 * @author mars
 * @date 2024-04-11
 */
@Data
@ApiModel(value = "药品对象")
@EqualsAndHashCode(callSuper = true)
public class SysDrugRequest extends PageRequest{



    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 药物剂型
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "药物剂型")
    private Long drugType;

    /**
     * 药品规格
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "药品规格")
    private Long drugSpecs;

    /**
     * 生产日期
     */
    @ApiModelProperty(value = "生产日期")
    private LocalDate productDate;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private String inventory;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDate createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;
}
